﻿<%@ Page Language="C#" MasterPageFile="~/Main/AdminPage.master" AutoEventWireup="true" CodeFile="HouseData.aspx.cs" Inherits="Main_HouseData" Title="楼盘列表" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:GridView ID="gvhouse" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" 
            BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="Hid" 
            OnPageIndexChanging="gvhouse_PageIndexChanging" OnRowCommand="gvhouse_RowCommand" 
            PageSize="20" Width="680px" onrowdatabound="gvhouse_RowDataBound">
            <Columns>
                <asp:TemplateField HeaderText="楼盘名">
                    <ItemTemplate>
                        <asp:HyperLink ID="hlname" runat="server" Target="_blank" 
                            Text='<%# Eval("Hname") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="类型">
                    <ItemTemplate>
                        <asp:Label ID="labtype" runat="server" Text='<%# Eval("Htype") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Hcost" HeaderText="均价" />
                <asp:BoundField DataField="Htel" HeaderText="电话" />
                <asp:BoundField DataField="Hperson" HeaderText="联系人" />
                <asp:BoundField DataField="Hdeveloper" HeaderText="开发商" />
                <asp:BoundField DataField="Hcompany" HeaderText="物业公司" />
                <asp:BoundField DataField="Htime" HeaderText="建成日期" />
                <asp:BoundField DataField="Hup" HeaderText="支持数"/>
                <asp:TemplateField HeaderText="修改">
                    <ItemTemplate>
                        <asp:HyperLink ID="hlupdate" runat="server">修改</asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbdelete" runat="server" 
                            CommandArgument='<%# Eval("Hid") %>' CommandName="del">删除</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle CssClass="FooterStyle" HorizontalAlign="Center" VerticalAlign="Middle" />
            <PagerStyle CssClass="PagerStyle" HorizontalAlign="Center" VerticalAlign="Middle" />
            <SelectedRowStyle CssClass="SelectedRowStyle" HorizontalAlign="Center" VerticalAlign="Middle" />
            <HeaderStyle CssClass="HeaderStyle" HorizontalAlign="Center" VerticalAlign="Middle" />
            <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <AlternatingRowStyle CssClass="AlternatingRowStyle" HorizontalAlign="Center" VerticalAlign="Middle" />
        </asp:GridView>
</asp:Content>

